home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 23 / AACD 23.iso / AACD / Programming / tek / kn / elate / exec / waitevent.c < prev   
Encoding:
C/C++ Source or Header  |  2001-05-12  |  396 b   |  26 lines

  1.  
  2. #include "tek/kn/elate/exec.h"
  3.  
  4. /* 
  5. **    TEKlib
  6. **    (C) 2001 TEK neoscientists
  7. **    all rights reserved.
  8. **
  9. **    TVOID kn_waitevent(TKNOB *event)
  10. **
  11. **    wait for kernel event.
  12. **
  13. */
  14.  
  15. TVOID kn_waitevent(TKNOB *event)
  16. {
  17.     if (sizeof(TKNOB) >= sizeof(ELATE_EVF))
  18.     {
  19.         kn_evf_wait((ELATE_EVF *) event, 1, EVFF_AND + EVFF_CLR);
  20.     }
  21.     else
  22.     {
  23.         kn_evf_wait(*((ELATE_EVF **) event), 1, EVFF_AND + EVFF_CLR);
  24.     }
  25. }
  26.